package com.java.core.bean;

public class ResultBean {
	private String msg = "操作成功！";
	private boolean success = true;
	private Object data;
	private Integer total;
	private Integer start;
	private Integer limit;
	private Integer status = 0;

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		if (msg.contains("Could not open JDBC Connection for transaction;")) {
			msg = "不能连接到数据库，请查看数据库服务是否正常运行！";
		}
		this.msg = msg;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}
